JavaScript

listObj.listRowIsDirty Method

Syntax

listObj.listRowIsDirty([zeroBasedRowNum]);

Arguments

zeroBasedRowNumnumber

The List row to check.

Returns

resultboolean

Returns true if the current row in the List is dirty.

Description

Returns true if the current row in the List is dirty. You can optionally specify a zero based row number.

Example

var listObj = {dialog.object}.getControl("LIST1");

if (listObj) {
    var isDirty = listObj.listRowIsDirty();
    if (isDirty) {
        alert("The current row is dirty.");
    } else {
        alert("The current row is not dirty.");
    }

    isDirty = listObj.listRowIsDirty(2);
    if (isDirty) {
        alert("Row 3 in the List is dirty.");
    } else {
        alert("Row 3 in the List is not dirty.");
    }
}

Limitations

List Control with Detail View Part

See Also